<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%
    request.setCharacterEncoding("UTF-8");
    String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    String date = format.format(new Date());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=path%>/CSS/backLayout.css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/CSS/bombBox.css">

</head>
<style>
    .seachform li span {
        color: #444444;
        padding-left: 60px;
    }

    li input {
        width: 80px;
    }

    select {
        width: 130px;
        height: 30px;
        line-height: 30px;
    }

    .seachform li {
        float: left;
    }

    .scinput {
        line-height: 10px;
        margin-top: 5px
    }

    .scinput1 {
        margin-top: -2px;
        height: 30px;
    }

    .scbtn {
        background: #57a0ff;
        border-radius: 20px;
        width: 110px;
        height: 35px;
        margin-left: 40px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        cursor: pointer;
        outline: none;
        border: none;
    }

    thead {
        background: #f2f2f2
    }

    .template th {
        height: 45px;
        background: none;
    }

    .template tr {
        height: 45px;
    }

    .template tr th {
        height: 20px;
        border-left: 1px solid #dddee6;
        border-right: 1px solid #dddee6;
        color: #444444;
        text-align: center;
    }

    .tou {
        background: #e4eafe
    }

    .kh {
        border-bottom: 1px solid #dddee6;
    }

    .shuju td {
        border: 1px solid #dddee6;
        color: #787c88;
        text-align: center;
    }

    .shuju th {
        border: 1px solid #dddee6;
        color: #787c88;
        text-align: center;
    }

    .shuju:nth-child(odd) {
        background: #ffffff
    }

    .shuju:nth-child(even) {
        background: #f3f5fb
    }

    .shuju:last-child {
        border-bottom: 1px solid #dddee6;
    }

    .shuju:HOVER {
        background: #fff6cd;
    }

    ul {
        border: none;
    }

    .shuju td:first-child {
        width: 70px;
    }

    .shuju td:nth-child(2) {
        width: 70px;
    }

    #_td {
        width: 40px;
    }

    td {
        font-size: 14px;
    }

    tr {
        height: 28px;
    }

    #date2 {
        display: none;
    }

</style>
<body style="background: #f5f5f5">
<div class="main">
    <div class="weizhi">
        报表>>部门日招生完成情况统计表
    </div>
    <div class="div_body" style="height: 60px; min-height: 60px;margin-bottom: 0px; ">

        <form action="<%=path%>/DrivingSys/outXls" class="form" method="post">
            <ul class="seachform">
                <li>
                    <span class="scinput">报表类型&nbsp;:&nbsp;</span>
                    <select id="state">
                        <option value="0">部门日招生(明细)</option>
                        <option value="1">部门月招生(明细)</option>
                        <option value="2">部门月招生(汇总)</option>
                    </select></li>
                <li id="date"><span class="scinput1">月份&nbsp;:&nbsp;</span>
                    <input name="beginTime" id="begindate" value="${beginTime}" style="color: gray;"
                           onclick="WdatePicker({el:'begindate',dateFmt:'yyyy-MM'})"/>
                    <img onclick="WdatePicker({el:'begindate',dateFmt:'yyyy-MM '})"
                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px"></li>
                </li>
                <li id="date2"><span class="scinput1">年度&nbsp;:&nbsp;</span>
                    <input name="beginTime" id="begindate2" value="${beginTime}" style="color: gray;"
                           onclick="WdatePicker({el:'begindate2',dateFmt:'yyyy'})"/>
                    <img onclick="WdatePicker({el:'begindate2',dateFmt:'yyyy '})"
                         src="<%=path%>/image/date.jpg" align="absmiddle" style="padding-left: 15px"></li>
                </li>

                <li>
                    <input id="xls" type="hidden" name="xls" value="">
                    <input type="hidden" id="fileName" name="fileNames" value="部门日招生完成情况统计表">
                </li>
                <li>
                    <input type="button" class="scbtn" id="selsect" value="立即查询"/>
                </li>
                <shiro:hasPermission name="/outXls">
                    <li><label>&nbsp;</label><input name="" type="submit" id="dc"
                                                    class="scbtn" value="导出Excel"/></li>
                </shiro:hasPermission>

            </ul>
        </form>

    </div>
    <div id="temp"
         style="width: 100%; overflow: auto; margin-bottom: 20px; margin-top: 30px; background: #fff; box-shadow: 0 0 10px #f2f2f2; min-height: 600px">

    </div>
</div>


</body>
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="<%=path%>/HoganJS/handlebars-v4.0.11.js"></script>
<script id="table-template-DepDay" type="text/x-handlebars-template">
    <div class="journaling">
        <table id="template" width="100%" align="center" style="min-height:30px;border-spacing:0;">
            <tr class="shuju">
                <th style="text-align:center; width: 20px;height: 25px; font-size: 18px;" colspan="12">部门日招生完成情况统计表</th>
            </tr>
            <tr class="shuju">
                <th colspan="4" style="text-align:center; width: 10px;height: 25px; font-size: 16px;">单位名称：{{gsName}}
                </th>
                <th style=" text-align: center; " colspan="8">时间：<span
                        id="beginTime"></span></th>
            </tr>
            <tbody id="table1" style="border-spacing: 0px">
            <tr class="shuju">
                <th style="text-align:center; background: rgb(228,234,254)">日期</th>
                <th style="text-align:center; background: rgb(228,234,254)">当日招生</th>
                <th style="text-align:center; background: rgb(228,234,254)">大车</th>
                <th style="text-align:center; background: rgb(228,234,254)">小车</th>
                <th style="text-align:center; background: rgb(228,234,254)">行政部</th>
                <th style="text-align:center; background: rgb(228,234,254)">招生部</th>
                <th style="text-align:center; background: rgb(228,234,254)">客服部</th>
                <th style="text-align:center; background: rgb(228,234,254)">教务部</th>
                <th style="text-align:center; background: rgb(228,234,254)">考场部</th>
                <th style="text-align:center; background: rgb(228,234,254)">本校</th>
                <th style="text-align:center; background: rgb(228,234,254)">二部</th>
                <th style="text-align:center; background: rgb(228,234,254)">三部</th>
            </tr>
            </tbody>
            <tbody id="table2">
            {{#each depDayComplete}}
            <tr class="shuju">
                <td style="text-align: center;">{{zero fbizdate}}日</td>
                <td style="text-align: center;" class="dayAdmissions">{{zero dayAdmissions}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar}}</td>
                <td style="text-align: center;" class="smallCar">{{zero smallCar}}</td>
                <td style="text-align: center;" class="administrationDep">{{zero administrationDep}}</td>
                <td style="text-align: center;" class="admissionsDep">{{zero admissionsDep}}</td>
                <td style="text-align: center;" class="customerDep">{{zero customerDep}}</td>
                <td style="text-align: center;" class="educationalDep">{{zero educationalDep}}</td>
                <td style="text-align: center;" class="testDep">{{zero testDep}}</td>
                <td style="text-align: center;" class="localSchool">{{zero localSchool}}</td>
                <td style="text-align: center;" class="twoSchool">{{zero twoSchool}}</td>
                <td style="text-align: center;" class="threeSchool">{{zero threeSchool}}</td>
            </tr>
            {{/each}}
            </tbody>
            <tbody id="table3">
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">本月小计</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool1"></td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchool1"></td>
            </tr>
            {{#each depDayComplete1}}
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">本年累计</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions2">{{zero
                    dayAdmissions}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar2">{{zero bigCar}}</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar2">{{zero smallCar}}</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep2">{{zero
                    administrationDep}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep2">{{zero
                    admissionsDep}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep2">{{zero
                    customerDep}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep2">{{zero
                    educationalDep}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep2">{{zero testDep}}</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool2">{{zero
                    localSchool}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool2">{{zero twoSchool}}
                </td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchool2">{{zero
                    threeSchool}}
                </td>
            </tr>
            {{/each}}
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">月度任务</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions3">1</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar3">2</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar3">3</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep3">4</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep3">5</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep3">6</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep3">7</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep3">8</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool3">9</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool3">10</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchool3">11</td>
            </tr>
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">年度任务</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions4">1</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar4">2</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar4">3</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep4">4</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep4">5</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep4">6</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep4">7</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep4">8</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool4">9</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool4">10</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchool4">11</td>
            </tr>
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">月度完成率</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions5">1</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar5">2</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar5">3</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep5">4</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep5">5</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep5">6</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep5">7</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep5">8</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool5">9</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool5">10</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchool5">11</td>
            </tr>
            <tr class="shuju">
                <td style="text-align: center; background-color: rgb(245,255,155)">年度完成率</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="dayAdmissions6">1</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="bigCar6">2</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="smallCar6">3</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="administrationDep6">4</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="admissionsDep6">5</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="customerDep6">6</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="educationalDep6">7</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="testDep6">8</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="localSchool6">9</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="twoSchool6">10</td>
                <td style="text-align: center; background-color: rgb(245,255,155)" id="threeSchoo6">11</td>
            </tr>
            </tbody>
        </table>
    </div>
</script>
<script id="table-template-DepMonth" type="text/x-handlebars-template">
    <div class="journaling">
        <table id="template" width="90%" align="center" style="min-height:30px;border-spacing:0;">
            <tr class="shuju">
                <td style="width: 20px;height: 25px; font-size: 18px;" colspan="30">个人月度招生完成情况统计表</td>
            </tr>
            <tr class="shuju">
                <td colspan="6" style="width: 20px;height: 25px; font-size: 16px;">单位名称：{{gsName}}</td>
                <td style=" text-align: center; background-color: rgb(245,255,155)" colspan="24">时间：<span
                        id="beginTime2"></span>年-<span
                        id="endTime2"></span>年
                </td>
            </tr>
            <tbody id="table1" style="border-spacing: 0px">
            <tr class="shuju">
                <th rowspan="2" style="text-align:center; background: rgb(228,234,254)">部门</th>
                <th rowspan="2" style="width:5px;text-align:center; background: rgb(228,234,254)">序号</th>
                <th rowspan="2" style="text-align:center; background: rgb(228,234,254)">姓名</th>
                <th rowspan="2" style="text-align:center; background: rgb(228,234,254)">任务完成情况</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">1月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">2月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">3月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">4月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">5月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">6月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">7月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">8月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">9月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">10月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">11月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">12月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">合计</th>
            </tr>
            <tr>
                <th id="_th" style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
            </tr>
            </tbody>
            <tbody id="table2">
            {{#each depDayComplete}}
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td style="text-align:center;width : 5.{{addKey @index}}px">{{addKey @index}}</td>
                <td style="text-align: center;" class="bigCar">{{name}}</td>
                <td style="text-align: center;">任务</td>
                <td id="_td" style="text-align: center;" class="rbigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="rsmallCar1">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="rbigCar2">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="rsmallCar2">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="rbigCar3">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="rsmallCar3">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="rbigCar4">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="rsmallCar4">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="rbigCar5">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="rsmallCar5">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="rbigCar6">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="rsmallCar6">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="rbigCar7">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="rsmallCar7">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="rbigCar8">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="rsmallCar8">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="rbigCar9">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="rsmallCar9">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="rbigCar10">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="rsmallCar10">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="rbigCar11">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="rsmallCar11">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="rbigCar12">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="rsmallCar12">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="rsumb">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="rsums">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>
            </tr>
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td style="text-align: center;">{{addKey @index}}</td>
                <td style="text-align: center;" class="bigCar">{{name}}</td>
                <td style="text-align: center;">实际</td>
                <td id="_td" style="text-align: center;" class="sbigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="ssmallCar1">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="sbigCar2">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="ssmallCar2">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="sbigCar3">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="ssmallCar3">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="sbigCar4">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="ssmallCar4">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="sbigCar5">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="ssmallCar5">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="sbigCar6">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="ssmallCar6">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="sbigCar7">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="ssmallCar7">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="sbigCar8">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="ssmallCar8">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="sbigCar9">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="ssmallCar9">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="sbigCar10">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="ssmallCar10">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="sbigCar11">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="ssmallCar11">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="sbigCar12">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="ssmallCar12">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="ssumb">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="ssums">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>

            </tr>
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td>{{addKey @index}}</td>
                <td style="text-align: center;" class="bigCar">{{name}}</td>
                <td style="text-align: center;">完成率</td>
                <td id="_td" style="text-align: center;" class="bigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="bigCar">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="bigCar">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>
            </tr>
            {{/each}}
            </tbody>
            <tbody id="table3">
            <tr class="shuju">
                <th colspan="3" rowspan="3" style="text-align: center; background-color: rgb(245,255,155)">合计</th>
                <th style="text-align: center;">任务</th>
                <th style="text-align: center;" id="rbigCar1"></th>
                <th style="text-align: center;" id="rsmallCar1"></th>
                <th style="text-align: center;" id="rbigCar2"></th>
                <th style="text-align: center;" id="rsmallCar2"></th>
                <th style="text-align: center;" id="rbigCar3"></th>
                <th style="text-align: center;" id="rsmallCar3"></th>
                <th style="text-align: center;" id="rbigCar4"></th>
                <th style="text-align: center;" id="rsmallCar4"></th>
                <th style="text-align: center;" id="rbigCar5"></th>
                <th style="text-align: center;" id="rsmallCar5"></th>
                <th style="text-align: center;" id="rbigCar6"></th>
                <th style="text-align: center;" id="rsmallCar6"></th>
                <th style="text-align: center;" id="rbigCar7"></th>
                <th style="text-align: center;" id="rsmallCar7"></th>
                <th style="text-align: center;" id="rbigCar8"></th>
                <th style="text-align: center;" id="rsmallCar8"></th>
                <th style="text-align: center;" id="rbigCar9"></th>
                <th style="text-align: center;" id="rsmallCar9"></th>
                <th style="text-align: center;" id="rbigCar10"></th>
                <th style="text-align: center;" id="rsmallCar10"></th>
                <th style="text-align: center;" id="rbigCar11"></th>
                <th style="text-align: center;" id="rsmallCar11"></th>
                <th style="text-align: center;" id="rbigCar12"></th>
                <th style="text-align: center;" id="rsmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="rsum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="rsum2"></th>
            </tr>
            <tr class="shuju">
                <th style="text-align: center;">实际</th>
                <th style="text-align: center;" id="sbigCar1"></th>
                <th style="text-align: center;" id="ssmallCar1"></th>
                <th style="text-align: center;" id="sbigCar2"></th>
                <th style="text-align: center;" id="ssmallCar2"></th>
                <th style="text-align: center;" id="sbigCar3"></th>
                <th style="text-align: center;" id="ssmallCar3"></th>
                <th style="text-align: center;" id="sbigCar4"></th>
                <th style="text-align: center;" id="ssmallCar4"></th>
                <th style="text-align: center;" id="sbigCar5"></th>
                <th style="text-align: center;" id="ssmallCar5"></th>
                <th style="text-align: center;" id="sbigCar6"></th>
                <th style="text-align: center;" id="ssmallCar6"></th>
                <th style="text-align: center;" id="sbigCar7"></th>
                <th style="text-align: center;" id="ssmallCar7"></th>
                <th style="text-align: center;" id="sbigCar8"></th>
                <th style="text-align: center;" id="ssmallCar8"></th>
                <th style="text-align: center;" id="sbigCar9"></th>
                <th style="text-align: center;" id="ssmallCar9"></th>
                <th style="text-align: center;" id="sbigCar10"></th>
                <th style="text-align: center;" id="ssmallCar10"></th>
                <th style="text-align: center;" id="sbigCar11"></th>
                <th style="text-align: center;" id="ssmallCar11"></th>
                <th style="text-align: center;" id="sbigCar12"></th>
                <th style="text-align: center;" id="ssmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="ssum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="ssum2"></th>
            </tr>
            <tr class="shuju">
                <th style="text-align: center;">完成率</th>
                <th style="text-align: center;" id="lbigCar1"></th>
                <th style="text-align: center;" id="lsmallCar1"></th>
                <th style="text-align: center;" id="lbigCar2"></th>
                <th style="text-align: center;" id="lsmallCar2"></th>
                <th style="text-align: center;" id="lbigCar3"></th>
                <th style="text-align: center;" id="lsmallCar3"></th>
                <th style="text-align: center;" id="lbigCar4"></th>
                <th style="text-align: center;" id="lsmallCar4"></th>
                <th style="text-align: center;" id="lbigCar5"></th>
                <th style="text-align: center;" id="lsmallCar5"></th>
                <th style="text-align: center;" id="lbigCar6"></th>
                <th style="text-align: center;" id="lsmallCar6"></th>
                <th style="text-align: center;" id="lbigCar7"></th>
                <th style="text-align: center;" id="lsmallCar7"></th>
                <th style="text-align: center;" id="lbigCar8"></th>
                <th style="text-align: center;" id="lsmallCar8"></th>
                <th style="text-align: center;" id="lbigCar9"></th>
                <th style="text-align: center;" id="lsmallCar9"></th>
                <th style="text-align: center;" id="lbigCar10"></th>
                <th style="text-align: center;" id="lsmallCar10"></th>
                <th style="text-align: center;" id="lbigCar11"></th>
                <th style="text-align: center;" id="lsmallCar11"></th>
                <th style="text-align: center;" id="lbigCar12"></th>
                <th style="text-align: center;" id="lsmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="lsum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="lsum2"></th>
            </tr>
            </tbody>
        </table>
    </div>
</script>
<script id="table-template-DepMonthNoPeople" type="text/x-handlebars-template">
    <div class="journaling">
        <table id="template" width="90%" align="center" style="min-height:30px;border-spacing:0;">
            <tr class="shuju">
                <td style="width: 20px;height: 25px; font-size: 18px;" colspan="30">个人月度招生完成情况统计表</td>
            </tr>
            <tr class="shuju">
                <td colspan="6" style="width: 20px;height: 25px; font-size: 16px;">单位名称：{{gsName}}</td>
                <td style=" text-align: center; background-color: rgb(245,255,155)" colspan="24">时间：<span
                        id="beginTime2"></span>年-<span
                        id="endTime2"></span>年
                </td>
            </tr>
            <tbody id="table1" style="border-spacing: 0px">
            <tr class="shuju">
                <th rowspan="2" style="text-align:center; background: rgb(228,234,254)">部门</th>
                <th rowspan="2" style="text-align:center; background: rgb(228,234,254)">项目</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">1月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">2月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">3月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">4月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">5月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">6月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">7月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">8月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">9月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">10月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">11月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">12月</th>
                <th colspan="2" style="text-align:center; background: rgb(228,234,254)">合计</th>
            </tr>
            <tr>
                <th id="_th" style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
                <th style="text-align:center;background: rgb(228,234,254)">大车</th>
                <th style="text-align:center;background: rgb(228,234,254)">小车</th>
            </tr>
            </tbody>
            <tbody id="table2">
            {{#each depDayComplete}}
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td style="text-align: center;">任务</td>
                <td id="_td" style="text-align: center;" class="rbigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="rsmallCar1">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="rbigCar2">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="rsmallCar2">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="rbigCar3">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="rsmallCar3">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="rbigCar4">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="rsmallCar4">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="rbigCar5">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="rsmallCar5">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="rbigCar6">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="rsmallCar6">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="rbigCar7">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="rsmallCar7">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="rbigCar8">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="rsmallCar8">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="rbigCar9">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="rsmallCar9">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="rbigCar10">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="rsmallCar10">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="rbigCar11">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="rsmallCar11">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="rbigCar12">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="rsmallCar12">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="rsumb">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="rsums">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>
            </tr>
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td style="text-align: center;">实际</td>
                <td id="_td" style="text-align: center;" class="sbigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="ssmallCar1">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="sbigCar2">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="ssmallCar2">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="sbigCar3">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="ssmallCar3">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="sbigCar4">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="ssmallCar4">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="sbigCar5">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="ssmallCar5">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="sbigCar6">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="ssmallCar6">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="sbigCar7">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="ssmallCar7">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="sbigCar8">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="ssmallCar8">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="sbigCar9">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="ssmallCar9">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="sbigCar10">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="ssmallCar10">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="sbigCar11">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="ssmallCar11">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="sbigCar12">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="ssmallCar12">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="ssumb">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="ssums">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>

            </tr>
            <tr class="shuju">
                <td style="text-align: center;" class="dayAdmissions">{{depName}}</td>
                <td style="text-align: center;">完成率</td>
                <td id="_td" style="text-align: center;" class="bigCar">{{zero bigCar1}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar1}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar2}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar2}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar3}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar3}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar4}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar4}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar5}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar5}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar6}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar6}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar7}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar7}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar8}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar8}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar9}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar9}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar10}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar10}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar11}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar11}}</td>
                <td style="text-align: center;" class="bigCar">{{zero bigCar12}}</td>
                <td style="text-align: center;" class="bigCar">{{zero smallCar12}}</td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="bigCar">{{sum12 bigCar1
                    bigCar2 bigCar3 bigCar4 bigCar5
                    bigCar6 bigCar7 bigCar8 bigCar9 bigCar10 bigCar11 bigCar12 }}
                </td>
                <td style="background: rgb(115,232,254)" style="text-align: center;" class="bigCar">{{sum12 smallCar1
                    smallCar2 smallCar3 smallCar4
                    smallCar5 smallCar6 smallCar7 smallCar8 smallCar9 smallCar10 smallCar11 smallCar12}}
                </td>
            </tr>
            {{/each}}
            </tbody>
            <tbody id="table3">
            <tr class="shuju">
                <th colspan="1" rowspan="3" style="text-align: center; background-color: rgb(245,255,155)">合计</th>
                <th style="text-align: center;">任务</th>
                <th style="text-align: center;" id="rbigCar1"></th>
                <th style="text-align: center;" id="rsmallCar1"></th>
                <th style="text-align: center;" id="rbigCar2"></th>
                <th style="text-align: center;" id="rsmallCar2"></th>
                <th style="text-align: center;" id="rbigCar3"></th>
                <th style="text-align: center;" id="rsmallCar3"></th>
                <th style="text-align: center;" id="rbigCar4"></th>
                <th style="text-align: center;" id="rsmallCar4"></th>
                <th style="text-align: center;" id="rbigCar5"></th>
                <th style="text-align: center;" id="rsmallCar5"></th>
                <th style="text-align: center;" id="rbigCar6"></th>
                <th style="text-align: center;" id="rsmallCar6"></th>
                <th style="text-align: center;" id="rbigCar7"></th>
                <th style="text-align: center;" id="rsmallCar7"></th>
                <th style="text-align: center;" id="rbigCar8"></th>
                <th style="text-align: center;" id="rsmallCar8"></th>
                <th style="text-align: center;" id="rbigCar9"></th>
                <th style="text-align: center;" id="rsmallCar9"></th>
                <th style="text-align: center;" id="rbigCar10"></th>
                <th style="text-align: center;" id="rsmallCar10"></th>
                <th style="text-align: center;" id="rbigCar11"></th>
                <th style="text-align: center;" id="rsmallCar11"></th>
                <th style="text-align: center;" id="rbigCar12"></th>
                <th style="text-align: center;" id="rsmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="rsum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="rsum2"></th>
            </tr>
            <tr class="shuju">
                <th style="text-align: center;">实际</th>
                <th style="text-align: center;" id="sbigCar1"></th>
                <th style="text-align: center;" id="ssmallCar1"></th>
                <th style="text-align: center;" id="sbigCar2"></th>
                <th style="text-align: center;" id="ssmallCar2"></th>
                <th style="text-align: center;" id="sbigCar3"></th>
                <th style="text-align: center;" id="ssmallCar3"></th>
                <th style="text-align: center;" id="sbigCar4"></th>
                <th style="text-align: center;" id="ssmallCar4"></th>
                <th style="text-align: center;" id="sbigCar5"></th>
                <th style="text-align: center;" id="ssmallCar5"></th>
                <th style="text-align: center;" id="sbigCar6"></th>
                <th style="text-align: center;" id="ssmallCar6"></th>
                <th style="text-align: center;" id="sbigCar7"></th>
                <th style="text-align: center;" id="ssmallCar7"></th>
                <th style="text-align: center;" id="sbigCar8"></th>
                <th style="text-align: center;" id="ssmallCar8"></th>
                <th style="text-align: center;" id="sbigCar9"></th>
                <th style="text-align: center;" id="ssmallCar9"></th>
                <th style="text-align: center;" id="sbigCar10"></th>
                <th style="text-align: center;" id="ssmallCar10"></th>
                <th style="text-align: center;" id="sbigCar11"></th>
                <th style="text-align: center;" id="ssmallCar11"></th>
                <th style="text-align: center;" id="sbigCar12"></th>
                <th style="text-align: center;" id="ssmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="ssum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="ssum2"></th>
            </tr>
            <tr class="shuju">
                <th style="text-align: center;">完成率</th>
                <th style="text-align: center;" id="lbigCar1"></th>
                <th style="text-align: center;" id="lsmallCar1"></th>
                <th style="text-align: center;" id="lbigCar2"></th>
                <th style="text-align: center;" id="lsmallCar2"></th>
                <th style="text-align: center;" id="lbigCar3"></th>
                <th style="text-align: center;" id="lsmallCar3"></th>
                <th style="text-align: center;" id="lbigCar4"></th>
                <th style="text-align: center;" id="lsmallCar4"></th>
                <th style="text-align: center;" id="lbigCar5"></th>
                <th style="text-align: center;" id="lsmallCar5"></th>
                <th style="text-align: center;" id="lbigCar6"></th>
                <th style="text-align: center;" id="lsmallCar6"></th>
                <th style="text-align: center;" id="lbigCar7"></th>
                <th style="text-align: center;" id="lsmallCar7"></th>
                <th style="text-align: center;" id="lbigCar8"></th>
                <th style="text-align: center;" id="lsmallCar8"></th>
                <th style="text-align: center;" id="lbigCar9"></th>
                <th style="text-align: center;" id="lsmallCar9"></th>
                <th style="text-align: center;" id="lbigCar10"></th>
                <th style="text-align: center;" id="lsmallCar10"></th>
                <th style="text-align: center;" id="lbigCar11"></th>
                <th style="text-align: center;" id="lsmallCar11"></th>
                <th style="text-align: center;" id="lbigCar12"></th>
                <th style="text-align: center;" id="lsmallCar12"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="lsum1"></th>
                <th style="background: rgb(115,232,254)" style="text-align: center;" id="lsum2"></th>
            </tr>
            </tbody>
        </table>
    </div>
</script>
<script type="text/javascript">
    $(function () {
        $('#selsect').click()
    });
    //弹出框模版文件
    var myTemplate_DepDay = Handlebars.compile($("#table-template-DepDay").html());
    var myTemplate_DepMonth = Handlebars.compile($("#table-template-DepMonth").html());
    var myTemplate_DepMonthNoPeople = Handlebars.compile($("#table-template-DepMonthNoPeople").html());

    //注册一个比较内容是否为空
    Handlebars.registerHelper("isNull", function (v1, options) {
        if (v1 != "") {
            //满足添加继续执行
            return options.fn(this);
        } else {
            //不满足条件执行{{else}}部分
            return options.inverse(this);
        }
    });

    //注册一个比较大小的Helper,判断v1是否大于v2
    Handlebars.registerHelper("compare", function (v1, v2, options) {
        if (v2 == 100) {
            //满足添加继续执行
            return options.fn(this);
        }
        if (v1 == v2) {
            //满足添加继续执行
            return options.fn(this);
        } else {
            //不满足条件执行{{else}}部分
            return options.inverse(this);
        }
    });

    Handlebars.registerHelper("division", function (num1, num2) {
        if (num1 == 0 || num2 == 0) {
            return 0;
        }
        return (num1 / num2).toFixed(2);
    });

    Handlebars.registerHelper("sum", function (num1, num2) {
        return (num1 * 1 + num2 * 1);
    });
    Handlebars.registerHelper("sum3", function (num1, num2, num3) {
        return (num1 * 1 + num2 * 1 + num3 * 1);
    });
    Handlebars.registerHelper("sum12", function (num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12) {
        return (num1 * 1 + num2 * 1 + num3 * 1 + num4 * 1 + num5 * 1 + num6 * 1 + num7 * 1 + num8 * 1 + num9 * 1 + num10 * 1 + num1 * 1 + num12 * 1);
    });
    Handlebars.registerHelper("zero", function (num1) {
        if (num1 == null) {
            return 0;
        }
        else {
            return num1;
        }
    });

    Handlebars.registerHelper('addKey', function (index) {
        return index + 1;
    });

    function _w_table_rowspan(_w_table_id, _w_table_colnum) {
        _w_table_firsttd = "";
        _w_table_currenttd = "";
        _w_table_SpanNum = 0;
        _w_table_Obj = $(_w_table_id + " tr td:nth-child(" + _w_table_colnum + ")");
        _w_table_Obj.each(function (i) {
            if (i == 0) {
                _w_table_firsttd = $(this);
                _w_table_SpanNum = 1;
            } else {
                _w_table_currenttd = $(this);
                if (_w_table_firsttd.text() == _w_table_currenttd.text()) {
                    _w_table_SpanNum++;
                    _w_table_currenttd.remove(); //remove();
                    _w_table_firsttd.attr("rowSpan", _w_table_SpanNum);
                } else {
                    _w_table_firsttd = $(this);
                    _w_table_SpanNum = 1;
                }
            }
        });
    }

    $(document).on("change", 'select#state', function () {
        if ($('#state').val() == 0) {
            $('#date2').hide();
            $('#date').show();
            $('#selsect').click();
        }
        if ($('#state').val() == 1) {
            $('#date').hide();
            $('#date2').show();
            $('#begindate2').val('2017');
            $('#selsect').click();
        }
        if ($('#state').val() == 2) {
            $('#date').hide();
            $('#date2').show();
            $('#begindate2').val('2017');
            $('#selsect').click();
        }
    });


    $('#selsect').click(function () {
        cfoilspecName = $('#cfoilspecName').val()
        begindate = $('#begindate').val()
        begindate2 = $('#begindate2').val()
        $('#temp').html("<div class='loading'></div>");


        $.ajax({
            url: '<%=path%>/DrivingSys/selDepDayCompleteJournal',
            type: "post",
            data: {
                'cfoilspecName': cfoilspecName,
                'begindate': begindate,
                'begindate2': begindate2,
                'state': $('#state').val()
            },
            dataType: "json",
            success: function (res) {
                //如果是查询总报表 fbizDate字段为空
                if (res.state == 0) {
                    $('#temp').html(myTemplate_DepDay(res))
                    fomatDate(0);
                    $('#fileName').val('部门日招生完成情况统计表')
                }
                //部门月招生
                if (res.state == 1) {
                    $('#temp').html(myTemplate_DepMonth(res))
                    _w_table_rowspan('#template', '3')
                    _w_table_rowspan('#template', '2')
                    _w_table_rowspan('#template', '1')
                    fomatDate(1);
                    $('#fileName').val('个人月度招生完成情况统计表')
                }
                if (res.state == 2) {
                    $('#temp').html(myTemplate_DepMonthNoPeople(res))
                    _w_table_rowspan('#template', '1')
                    fomatDate(1);
                    $('#fileName').val('部门月度招生完成情况统计表')
                }

                $('#beginTime').html($('#begindate').val())
                $('#beginTime2').html($('#begindate2').val() * 1 - 1)
                $('#endTime2').html($('#begindate2').val())
                $('#xls').val($('#temp').html())
            },
            error: function () {
                alert('Error');
            }
        });


    })

    function fomatDate(state) {
        if (state == 0) {
            var dayAdmissions = 0, bigCar = 0, smallCar = 0, administrationDep = 0,
                admissionsDep = 0, customerDep = 0, educationalDep = 0, testDep = 0,
                localSchool = 0, twoSchool = 0, threeSchool = 0;
            $('.dayAdmissions').each(function (i) {
                dayAdmissions += $(this).html() * 1
            })
            $('.bigCar').each(function (i) {
                bigCar += $(this).html() * 1
            })
            $('.smallCar').each(function (i) {
                smallCar += $(this).html() * 1
            })
            $('.administrationDep').each(function (i) {
                administrationDep += $(this).html() * 1
            })
            $('.admissionsDep').each(function (i) {
                admissionsDep += $(this).html() * 1
            })
            $('.customerDep').each(function (i) {
                customerDep += $(this).html() * 1
            })
            $('.educationalDep').each(function (i) {
                educationalDep += $(this).html() * 1
            })
            $('.localSchool').each(function (i) {
                localSchool += $(this).html() * 1
            })
            $('.twoSchool').each(function (i) {
                twoSchool += $(this).html() * 1
            })
            $('.threeSchool').each(function (i) {
                threeSchool += $(this).html() * 1
            })

            $('#dayAdmissions1').html(dayAdmissions);
            $('#bigCar1').html(bigCar);
            $('#smallCar1').html(smallCar);
            $('#administrationDep1').html(administrationDep);
            $('#admissionsDep1').html(admissionsDep);
            $('#customerDep1').html(customerDep);
            $('#educationalDep1').html(educationalDep);
            $('#testDep1').html(testDep);
            $('#localSchool1').html(localSchool);
            $('#twoSchool1').html(twoSchool);
            $('#threeSchool1').html(threeSchool);
        }
        if (state == 1) {
            var bigCar1 = 0, bigCar2 = 0, bigCar3 = 0, bigCar4 = 0, bigCar5 = 0, bigCar6 = 0, bigCar7 = 0,
                bigCar8 = 0, bigCar9 = 0, bigCar10 = 0, bigCar11 = 0, bigCar12 = 0, smallCar1 = 0,
                smallCar2 = 0, smallCar3 = 0, smallCar4 = 0, smallCar5 = 0, smallCar6 = 0, smallCar7 = 0,
                smallCar8 = 0, smallCar9 = 0, smallCar10 = 0, smallCar11 = 0, smallCar12 = 0, sum1 = 0, sum2 = 0;
            $('.sbigCar1').each(function (i) {
                bigCar1 += $(this).html() * 1
            })
            $('.sbigCar2').each(function (i) {
                bigCar2 += $(this).html() * 1
            })
            $('.sbigCar3').each(function (i) {
                bigCar3 += $(this).html() * 1
            })
            $('.sbigCar4').each(function (i) {
                bigCar4 += $(this).html() * 1
            })
            $('.sbigCar5').each(function (i) {
                bigCar5 += $(this).html() * 1
            })
            $('.sbigCar6').each(function (i) {
                bigCar6 += $(this).html() * 1
            })
            $('.sbigCar7').each(function (i) {
                bigCar7 += $(this).html() * 1
            })
            $('.sbigCar8').each(function (i) {
                bigCar8 += $(this).html() * 1
            })
            $('.sbigCar9').each(function (i) {
                bigCar9 += $(this).html() * 1
            })
            $('.sbigCar10').each(function (i) {
                bigCar10 += $(this).html() * 1
            })
            $('.sbigCar11').each(function (i) {
                bigCar11 += $(this).html() * 1
            })
            $('.sbigCar12').each(function (i) {
                bigCar12 += $(this).html() * 1
            })
            $('.ssmallCar1').each(function (i) {
                smallCar1 += $(this).html() * 1
            })
            $('.ssmallCar2').each(function (i) {
                smallCar2 += $(this).html() * 1
            })
            $('.ssmallCar3').each(function (i) {
                smallCar3 += $(this).html() * 1
            })
            $('.ssmallCar4').each(function (i) {
                smallCar4 += $(this).html() * 1
            })
            $('.ssmallCar5').each(function (i) {
                smallCar5 += $(this).html() * 1
            })
            $('.ssmallCar6').each(function (i) {
                smallCar6 += $(this).html() * 1
            })
            $('.ssmallCar7').each(function (i) {
                smallCar7 += $(this).html() * 1
            })
            $('.ssmallCar8').each(function (i) {
                smallCar8 += $(this).html() * 1
            })
            $('.ssmallCar9').each(function (i) {
                smallCar9 += $(this).html() * 1
            })
            $('.ssmallCar10').each(function (i) {
                smallCar10 += $(this).html() * 1
            })
            $('.ssmallCar11').each(function (i) {
                smallCar11 += $(this).html() * 1
            })
            $('.ssmallCar12').each(function (i) {
                smallCar12 += $(this).html() * 1
            })
            $('.ssumb').each(function (i) {
                sum1 += $(this).html() * 1
            })
            $('.ssums').each(function (i) {
                sum2 += $(this).html() * 1
            })

            $('#sbigCar1').html(bigCar1);
            $('#sbigCar2').html(bigCar2);
            $('#sbigCar3').html(bigCar3);
            $('#sbigCar4').html(bigCar4);
            $('#sbigCar5').html(bigCar5);
            $('#sbigCar6').html(bigCar6);
            $('#sbigCar7').html(bigCar7);
            $('#sbigCar8').html(bigCar8);
            $('#sbigCar9').html(bigCar9);
            $('#sbigCar10').html(bigCar10);
            $('#sbigCar11').html(bigCar11);
            $('#sbigCar12').html(bigCar12);

            $('#ssmallCar1').html(smallCar1);
            $('#ssmallCar2').html(smallCar2);
            $('#ssmallCar3').html(smallCar3);
            $('#ssmallCar4').html(smallCar4);
            $('#ssmallCar5').html(smallCar5);
            $('#ssmallCar6').html(smallCar6);
            $('#ssmallCar7').html(smallCar7);
            $('#ssmallCar8').html(smallCar8);
            $('#ssmallCar9').html(smallCar9);
            $('#ssmallCar10').html(smallCar10);
            $('#ssmallCar11').html(smallCar11);
            $('#ssmallCar12').html(smallCar12);

            $('#ssum1').html(sum1);
            $('#ssum2').html(sum2);
        }
    }

</script>
<%@ include file="/WEB-INF/JSP/ajax.jsp" %>
</html>